package com.soryin.dao.impl;

import java.io.Serializable;
import java.util.List;

import com.soryin.dao.SoryinDao;
import com.soryin.entity.Soryin;

public class SoryinDaoImpl extends BaseDaoImpl<Soryin> implements SoryinDao {

	
	public Serializable save(Soryin entity, List<Object> blocks) {
		Serializable uid=(Integer) this.getSession().save(entity);
		for (Object object : blocks) {
			System.out.println(super.c.getName()+"DAO"+"执行 "+object.getClass().getName()+" save 成功！");
			this.getSession().save(object);
		}
		System.out.println(super.c.getName()+"DAO"+"执行save 成功！");
		return uid;
	}


}
